<?php defined( '_JEXEC') or die; //no direct access ?>
    <form action="<?php echo JRoute::_('index.php?option=com_normal&view=normal'); ?>"
    method="GET">
        <input type="hidden" name="location" value="<?php echo JRequest::getVar('location'); ?>"/>
        <input type="hidden" name="timepsan" value="<?php echo JRequest::getVar('timepsan'); ?>"/>
        <input type="hidden" name="industry" value="<?php echo JRequest::getVar('industry'); ?>"/>
        <input type="hidden" name="keywords" value="<?php echo JRequest::getVar('keywords'); ?>"/>
        <div class="subhead">
            <p>
				<a name="content"></a>
                <h2 class="heading">
                    Search results: <?php echo ($this->total); ?> files found
                </h2>
            </p>
			<table border="0" cellspacing="0" cellpadding="0">
				<?php foreach($this->results as $file) : ?>
					<tr>
						<td>
							<img src="<?php echo $this->baseurl ?>/templates/gippslandsitetemplate2/images/radio.gif" />&nbsp;&nbsp;
						</td>
						<td>
							<strong><?php echo $file->name; ?></strong><br />
						<?php echo substr($file->description, 0, 120) . '...'; ?>
							<a href="<?php echo JRoute::_('index.php?option=com_normal&view=filedetail&fileId=' . $file->id . '#content'); ?>">View detail</a>
						</td>
						<td>
							<input type="button" value="Download" onclick="javascript:window.location='<?php echo JRoute::_('index.php?option=com_volunteer&task=downloadfile&fileId=' . $file->id); ?>';" />
						</td>
					</tr>
				<?php endforeach; ?>
			</table>
           
            <div class="pagination">
                <?php echo $this->pagination->getPagesLinks (); ?>
            </div>
        </div>
    </form>